home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World's Largest Collection of Windows Software
/
The World's Largest Collection of Windows Software - Disc 1.iso
/
connect
/
_j2
/
serweb03
/
serwedoc.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-30
|
2KB
|
83 lines
// serwedoc.cpp : implementation of the CSerwebDoc class
//
#include "stdafx.h"
#include "serweb.h"
#include "serwedoc.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSerwebDoc
IMPLEMENT_DYNCREATE(CSerwebDoc, CDocument)
BEGIN_MESSAGE_MAP(CSerwebDoc, CDocument)
//{{AFX_MSG_MAP(CSerwebDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSerwebDoc construction/destruction
CSerwebDoc::CSerwebDoc()
{
line_number = 0;
column_number = 0;
m_sizeDoc = CSize(0, 1000);
}
CSerwebDoc::~CSerwebDoc()
{
}
BOOL CSerwebDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CSerwebDoc serialization
void CSerwebDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CSerwebDoc diagnostics
#ifdef _DEBUG
void CSerwebDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CSerwebDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSerwebDoc commands